import request from '../utils/request1'

export function getpowerElectricity(id) {
  return request({
    url: '/cv/stateMonitor/powerElectricity',
    method: 'post',
    data: {
      valvehallId: id
    }
  })
}

export function gettriggerAngle(id) {
  return request({
    url: '/cv/stateMonitor/triggerAngle',
    method: 'post',
    data: {
      valvehallId: id
    }
  })
}

export function getwaterFlowTemperature(id, item) {
  return request({
    url: '/cv/stateMonitor/waterFlowTemperature',
    method: 'post',
    data: {
      valvehallId: id,
      valvetowerName: item
    }
  })
}

export function getvalvePower(id, item) {
  return request({
    url: '/cv/stateMonitor/valvePower',
    method: 'post',
    data: {
      valvehallId: id,
      valvetowerName: item
    }
  })
}

export function getvalveTowerTemperatureMax(id, item) {
  return request({
    url: '/cv/stateMonitor/valveTowerTemperatureMax',
    method: 'post',
    data: {
      valvehallId: id,
      valvetowerName: item
    }
  })
}

export function getvalveHallTemperatureHumidity(id, item) {
  return request({
    url: '/cv/stateMonitor/valveHallTemperatureHumidity',
    method: 'post',
    data: {
      valvehallId: id,
      valvetowerName: item
    }
  })
}

export function getalarmInfo(id, item) {
  return request({
    url: '/cv/stateMonitor/alarmInfo',
    method: 'post',
    data: {
      valvehallId: id,
      valvetowerName: item
    }
  })
}

export function getHint(id, item) {
  return request({
    url: 'cv/stateMonitor/hint',
    method: 'post',
    data: {
      valvehallId: id,
      valvetowerName: item
    }
  })
}

